package com.zhouyu;

import com.spring.ZhouyuApplicationConext;
import com.zhouyu.service.UserInterface;
import com.zhouyu.service.UserService;

public class Test {
	public static void main(String[] args) {
		//创建单例Bean
		ZhouyuApplicationConext conext = new ZhouyuApplicationConext(AppConfig.class);

		UserInterface userService = (UserInterface)conext.getBean("userService");
		userService.test();
	}
}
